<?php
/*------------------------------------------------------------------------
 * setting.php 
 *
 * 配置文件
 * 	
 * Created on 2015-05-04
 *
 * Author: hwc123 <hwc123@139.com>
 * 
 * Copyright (c) 2015 http://www.qingtajiao.com All rights reserved.
 *
 * 配置项说明
 * ----label		标签
 * ----title		标题
 * ----name			键名
 * ----val			默认值
 * ----description	描述
 * ----val_type		值类型 text、radio、textarea
 * ----val_content	选项内容,对radio有效
 * 
 * ------------------------------------------------------------------------
 */

return array(
	'setting' => array(
		//系统配置
		'system' => array(
			// array('label' => '接口配置', 'title' => '接口日志开关', 'name' => 'api_logs_open', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'),
			array('label' => '网站配置', 'title' => '网站标题', 'name' => 'web_title', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '网站关键字', 'name' => 'web_keywords', 'val'=> '', 'description' => '', 'val_type' => 'textarea', 'val_content' => ''),
			array('label' => '', 'title' => '网站描述', 'name' => 'web_description', 'val'=> '', 'description' => '', 'val_type' => 'textarea', 'val_content' => ''),
			array('label' => '', 'title' => 'QQ客服', 'name' => 'web_qq_service', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '客服URL', 'name' => 'service_url', 'val'=> '', 'description' => '', 'val_type' => 'url', 'val_content' => ''),
			array('label' => '', 'title' => '备案号', 'name' => 'web_filing_number', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '网站地址', 'name' => 'web_url', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => 'SaaS前台地址', 'name' => 'saas_home_url', 'val'=> '', 'description' => 'SaaS用户前台地址', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => 'SaaS管理地址', 'name' => 'saas_admin_url', 'val'=> '', 'description' => 'SaaS用户管理地址', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '订单短信通知', 'name' => 'order_notice_mobile', 'val'=> '', 'description' => '', 'val_type' => 'textarea', 'val_content' => ''),
			
		),
		
		//短信配置
		'sms' => array(
			//创蓝短信
			array('label' => '创蓝短信', 'title' => '账号', 'name' => 'cl_account', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => array('name' => '申请', 'url' => 'http://www.cl2009.com/')),
			array('label' => '', 'title' => '密码', 'name' => 'cl_password', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			
			//中国网建
			array('label' => '中国网建', 'title' => '账号', 'name' => 'wc_uid', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => array('name' => '申请', 'url' => 'http://sms.webchinese.com.cn/')),
			array('label' => '', 'title' => 'KEY', 'name' => 'wc_key', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			
			//亿美
			array('label' => '亿美', 'title' => 'cdkey', 'name' => 'b2m_cdkey', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '密码', 'name' => 'b2m_password', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			
			//云片网
			array('label' => '云片网', 'title' => 'APIKEY', 'name' => 'yunpian_apikey', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => array('name' => '申请', 'url' => 'http://www.yunpian.com/')),
			
			//集时通
			array('label' => '集时通', 'title' => '账号', 'name' => 'vcomcn_account', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '密码', 'name' => 'vcomcn_password', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			
			//其它配置
			array('label' => '其它配置', 'title' => '使用短信类型', 'name' => 'type', 'val'=> '', 'description' => '', 'val_type' => 'radio', 'val_content' => 'cl=创蓝短信||b2m=亿美短信||webchinese=中国网建||yunpian=云片网短信||yunpian_voice=云片网语音||vcomcn=集时通'),
			array('label' => '', 'title' => '签名', 'name' => 'signature', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '验证码模板', 'name' => 'smscode_tpl', 'val' => '', 'description' => '#signature#为签名<br>#code#为验证码', 'val_type' => 'textarea', 'val_content' => ''),
			array('label' => '', 'title' => '开启发送日志', 'name' => 'is_record_send_logs', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '0=关闭||1=开启'),
			//短信提醒时间段
			// array('label' => '短信提醒时间段', 'title' => '开始时间', 'name' => 'start_remind_time', 'val'=> '', 'description' => '开始提醒时间', 'val_type' => 'select', 'val_content' => '08=8点||09=9点||10=10点||11=11点||12=12点||13=13点||14=14点||15=15点||16=16点||17=17点||18=18点||19=19点||20=20点||21=21点||22=22点'),
			// array('label' => '', 'title' => '结束时间', 'name' => 'end_remind_time', 'val' => '', 'description' => '结束提醒时间', 'val_type' => 'select', 'val_content' => '08=8点||09=9点||10=10点||11=11点||12=12点||13=13点||14=14点||15=15点||16=16点||17=17点||18=18点||19=19点||20=20点||21=21点||22=22点'),
		),
		'msg_tpl' => array(
			//其它配置
			array('label' => '订单消息', 'title' => '完成合同', 'name' => 'finish_order_user', 'val'=> '', 'description' => '#title#为合同名称<br>#order_sn#为订单号<br>#signature#为短信签名', 'val_type' => 'textarea', 'val_content' => ''),
			
		),
		//短信过滤
		'filter_sms' => array(
			//创蓝短信
			array('label' => '过滤手机号', 'title' => '手机号', 'name' => 'filter_mobile', 'val' => '', 'description' => '一行一个手机号', 'val_type' => 'textarea', 'val_content' => '', 'style'=>'height:400px;'),
		),

		//微信配置
		'weixin' => array(
			array('label' => '微信配置', 'title' => '微信Token', 'name' => 'token', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => array('name' => '申请', 'url' => 'https://open.weixin.qq.com/')),
			array('label' => '', 'title' => '微信AppID', 'name' => 'appid', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '微信appsecret', 'name' => 'appsecret', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
		),
		//QQ登录配置
		'qq' => array(
			array('label' => 'QQ登录配置', 'title' => 'APP ID', 'name' => 'appid', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => array('name' => '申请', 'url' => 'http://connect.qq.com/')),
			array('label' => '', 'title' => 'APP KEY', 'name' => 'appkey', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '回调地址', 'name' => 'callback', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
		),
		//微博登录配置
		'weibo' => array(
			array('label' => '微博配置', 'title' => 'App Key', 'name' => 'appkey', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => array('name' => '申请', 'url' => 'http://open.weibo.com/')),
			array('label' => '', 'title' => 'App Secret', 'name' => 'appsecret', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
		),

		//评论配置
		'comment' => array(
			//创蓝短信
			array('label' => '评论配置', 'title' => '评论开关', 'name' => 'is_comment', 'val' => '', 'description' => '打开则用户可以对文章进行评论', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'),
			array('label' => '', 'title' => '评论审核', 'name' => 'is_audit', 'val' => '', 'description' => '打开则用户提交评论需要审核通过才能显示，关闭则用户提交评论直接显示出来', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'),
			array('label' => '', 'title' => '过滤关键字', 'name' => 'filter_keyword', 'val' => '', 'description' => '一行一个', 'val_type' => 'textarea', 'val_content' => '', 'style'=>'height:300px;'),
		),

		//E-mail配置
		'email' => array(
			array('label' => '邮件服务器配置', 'title' => 'SMTP地址', 'name' => 'host', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '用户名', 'name' => 'username', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '密码', 'name' => 'password', 'val' => '', 'description' => '', 'val_type' => 'password', 'val_content' => ''),
			array('label' => '', 'title' => '端口', 'name' => 'port', 'val' => '25', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '发送人名称', 'name' => 'fromname', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
		),

		//支付配置
		'pay' => array(
			//支付宝
			array('label' => '支付宝', 'title' => '支付宝账号', 'name' => 'alipay_seller_email', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => array('name' => '申请', 'url' => 'https://e.alipay.com/')),
			array('label' => '', 'title' => '合作身份者ID', 'name' => 'alipay_partner', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '安全检验码', 'name' => 'alipay_key', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '商户私钥', 'name' => 'alipay_private_pem', 'val' => '', 'description' => '', 'val_type' => 'file', 'val_content' => '', 'file_ext' => 'pem'),
			array('label' => '', 'title' => '支付宝公钥', 'name' => 'alipay_public_pem', 'val' => '', 'description' => '', 'val_type' => 'file', 'val_content' => '', 'file_ext' => 'pem'),
			array('label' => '', 'title' => '启用状态', 'name' => 'alipay_open', 'val'=> '', 'description' => '', 'val_type' => 'checkbox', 'val_content' => 'wap=WAP||web=WEB||app=APP'),
			
			//快钱
			// array('label' => '快钱支付', 'title' => '商户号', 'name' => 'kuaiqian_merchant_id', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => '', 'opt' => array('name' => '申请', 'url' => 'https://www.99bill.com/')),
			// array('label' => '', 'title' => 'VPOS商户编号', 'name' => 'kuaiqian_vpos_merchant_id', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => 'SOAP商户编号', 'name' => 'kuaiqian_soap_merchant_id', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => '终端号', 'name' => 'kuaiqian_terminal_id', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => '商户密钥', 'name' => 'kuaiqian_merchant_key', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => '证书密钥', 'name' => 'kuaiqian_cert_pass', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => 'CER证书', 'name' => 'kuaiqian_cer_path', 'val' => '', 'description' => '', 'val_type' => 'file', 'val_content' => '', 'file_ext' => 'cer'),
			// array('label' => '', 'title' => 'PEM证书', 'name' => 'kuaiqian_pem_path', 'val' => '', 'description' => '', 'val_type' => 'file', 'val_content' => '', 'file_ext' => 'pem'),
			// array('label' => '', 'title' => '启用状态', 'name' => 'kuaiqian_open', 'val'=> '', 'description' => '', 'val_type' => 'checkbox', 'val_content' => 'wap=WAP||web=WEB||app=APP'),
			//WEB银联支付
			array('label' => '银联支付WEB', 'title' => '商户号', 'name' => 'upmp_web_merchant_id', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '证书密码', 'name' => 'upmp_web_cert_pwd', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => 'pfx证书', 'name' => 'upmp_web_pfx_file', 'val' => '', 'description' => '', 'val_type' => 'file', 'val_content' => '', 'file_ext' => 'pfx'),
			array('label' => '', 'title' => '启用开关', 'name' => 'upmp_is_web_pay', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'),
			//APP银联支付
			// array('label' => '银联支付APP', 'title' => '商户号', 'name' => 'upmp_app_merchant_id', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => '证书密码', 'name' => 'upmp_app_cert_pwd', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => 'pfx证书', 'name' => 'upmp_app_pfx_file', 'val' => '', 'description' => '', 'val_type' => 'file', 'val_content' => '', 'file_ext' => 'pfx'),
			// array('label' => '', 'title' => '启用开关', 'name' => 'upmp_is_app_pay', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'),
			
			//WEB微信支付
			array('label' => '微信支付WEB', 'title' => 'APPID', 'name' => 'weixin_web_appid', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => '受理商ID', 'name' => 'weixin_web_mchid', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => 'KEY', 'name' => 'weixin_web_key', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => 'App Secret', 'name' => 'weixin_web_appsecret', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			array('label' => '', 'title' => 'CERT PEM', 'name' => 'weixin_cert_file', 'val' => '', 'description' => '', 'val_type' => 'file', 'val_content' => '', 'file_ext' => 'pem'),
			array('label' => '', 'title' => 'KEY PEM', 'name' => 'weixin_key_file', 'val' => '', 'description' => '', 'val_type' => 'file', 'val_content' => '', 'file_ext' => 'pem'),
			array('label' => '', 'title' => '启用开关', 'name' => 'weixin_is_web_pay', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'),
			
			//APP微信支付
			// array('label' => '微信支付APP', 'title' => 'APPID', 'name' => 'weixin_app_appid', 'val'=> '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => 'App Secret', 'name' => 'weixin_app_sercert', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => 'Partner Key', 'name' => 'weixin_app_partner_key', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => '商户号', 'name' => 'weixin_app_partner_id', 'val' => '', 'description' => '', 'val_type' => 'text', 'val_content' => ''),
			// array('label' => '', 'title' => '启用开关', 'name' => 'weixin_is_app_pay', 'val' => '', 'description' => '', 'val_type' => 'radio', 'val_content' => '1=打开||0=关闭'),
			
		),

		// 定制合同配置
		'custom_agreement' => array(
			array('label' => '定制合同配置', 'title' => '显示类别', 'name' => 'show_sort_id', 'val' => '', 'description' => '', 'val_type' => 'category_select', 'val_content' => 'agreement'),
			array('label' => '', 'title' => '其它类别', 'name' => 'other_sort_id', 'val' => '', 'description' => '', 'val_type' => 'category_select', 'val_content' => 'agreement'),
		),

	)
);
?>